<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的消息</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="__ROOT__/Public/Admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/animate.css" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/style.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" href="__ROOT__/Public/Admin/css/welcome.css" />
</head>
<body>
    <body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            
                <div class="ibox">
                    <div class="ibox-content">
                        
                        <ul class="nav nav-tabs">
                                <li class="active"><a data-toggle="tab" href="#tab-1"><i class="fa fa-bullhorn"></i>消息列表</a>
                                </li>
                            </ul>
                         <form class="well form-search form-inline" action="{:U('Admin/Message/my_messages')}" method="post" enctype="multipart/form-data">
                            <div class="input-group">
                                <input type="text" name="keyword" placeholder="查找标题" value="{:I('request.keyword/s','')}" class="input form-control" style="width: 96%;">
                                <span class="input-group-btn">
                                    <button type="submit" class="btn btn btn-primary"> <i class="fa fa-search"></i> 搜索</button>
                                </span>
                            </div>
                        </form>
                       
                            
                        <div class="tab-content">
                            <div id="tab-1" class="tab-pane active">
                                    <table class="table table-hover table-bordered table-list" data-mobile-responsive="true">
                                        <thead>
                                            <tr>
                                                <th width="50px">序号</th>
                                                <th width="150px">标题</th>
                                                <th width="100px">发送人</th>
                                                <th width="150px">阅读时间</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <if condition="count($Messages) lt 1">
                                            <tr>
                                                <td colspan="10">查无数据</td>
                                            </tr>
                                            <else/>
                                            <foreach name="Messages" item="vo">
                                                <tr>
                                                    <td>{$key + 1}</td>
                                                    <td>{$vo.Title}</td>
                                                    <td>
                                                        <if condition="$vo['TrueName']!=''">
                                                          {$vo.TrueName}
                                                          <else/>
                                                          {$vo.UserName}
                                                        </if>
                                                    </td>
                                                    <td>
                                                        <if condition="!empty($vo['OpenTime'])">    
                                                            {$vo.OpenTime}
                                                        <else />
                                                             未查看   
                                                        </if>     
                                                    </td>
                                                    <td>
                                                        <a class="show-user label label-info" id="{$vo.ID}" href="{:U('Admin/Message/detail',array('id'=>$vo['ID']))}">查看</a>                                                          
                                                    </td>
                                                </tr>
                                            </foreach>
                                        </if>
                                        </tbody>
                                    </table>
                                {$page}
                            </div>
                        </div>
                        
                    </div>
                </div>
            
        </div>
    </div>    
</body>
    <!-- 全局js -->
    <script src="__ROOT__/Public/Admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="__ROOT__/Public/Admin/js/bootstrap.min.js?v=3.3.6"></script>
    <script>
   
    </script>
</html>